<!DOCTYPE html>
<html>
<head>
<link href='../../dist/fullcalendar.css' rel='stylesheet' />
<link href='../../dist/fullcalendar.print.css' rel='stylesheet' media='print' />
<script src='../../node_modules/jquery/dist/jquery.js'></script>
<script src='../../node_modules/moment/moment.js'></script>
<script src='../../dist/fullcalendar.js'></script>
<script src='../lib/themeswitcher/jquery.themeswitcher.js'></script>
<script>

function initCalendar() {

	$('#calendar').fullCalendar({
		theme: true,
		header: {
			left: 'prev,next today',
			center: 'title',
			right: 'month,agendaWeek,agendaDay,listWeek'
		},
		defaultDate: '2014-08-12',
		weekNumbers: true,
		editable: true,
		eventLimit: true, // allow "more" link when too many events
		events: [
			{
				title: 'All Day Event',
				start: '2014-08-01'
			},
			{
				title: 'Long Event',
				start: '2014-08-07',
				end: '2014-08-10'
			},
			{
				id: 999,
				title: 'Repeating Event',
				start: '2014-08-09T16:00:00'
			},
			{
				id: 999,
				title: 'Repeating Event',
				start: '2014-08-16T16:00:00'
			},
			{
				title: 'Conference',
				start: '2014-08-11',
				end: '2014-08-13'
			},
			{
				title: 'Meeting',
				start: '2014-08-12'
			},
			{
				title: 'Lunch',
				start: '2014-08-12'
			},
			{
				title: 'Meeting',
				start: '2014-08-12'
			},
			{
				title: 'Happy Hour',
				start: '2014-08-12'
			},
			{
				title: 'Dinner',
				start: '2014-08-12'
			},
			{
				title: 'Birthday Party',
				start: '2014-08-13T07:00:00'
			},
			{
				title: 'Click for Google',
				url: 'http://google.com/',
				start: '2014-08-28'
			}
		]
	});

}


$(document).ready(function() {

	initCalendar();
	
	$('#switcher').themeswitcher({
		imgPath: '../lib/themeswitcher/images/',
		loadTheme: 'Cupertino',
		height: 400,
		onSelect: function(theme) {
			setTimeout(function() {
				$('#calendar').fullCalendar('render');
			},1000);
		}
	});
	
});

</script>
</head>
<body style='font-size:13px;margin:0'>
<div id="switcher" style='position:absolute;top:5px;left:5px'></div>
<div id='calendar' style='width:900px;margin:50px auto 0;font-family:arial'></div>
</body>
</html>
